package com.hxzy.module.merchant.mapstruct;

import com.hxzy.module.merchant.api.merchant.resp.MerchantResp;
import com.hxzy.module.merchant.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author wy
 * @Description TODO
 * @Date 2024/1/26 15:17
 * @Version 1.0
 */
@Mapper
public interface MerchantMapStruct {
    MerchantMapStruct INSTANCE= Mappers.getMapper(MerchantMapStruct.class);

    /**
     * 转换
     * @param entity
     * @return
     */
    MerchantResp  convert(Merchant entity);
}
